import Login from './login.vue'
import Forget from './forget.vue'
import Identidy from './identidy/index.vue'
import IdentidyStep1 from './identidy/step1.vue'
import IdentidyStep2 from './identidy/step2.vue'
import IdentidyStep3 from './identidy/step3.vue'

import SLession from './student/lession.vue'
import Student from './student/index.vue'
import SMistake from './student/mistake/index.vue'
import SMistakeHomework from './student/mistake/homework.vue'
import SMistakeDetail from './student/mistake/detail.vue'
import SExam from './student/mistake/exam.vue'
import STutorship from './student/tutorship.vue'
import STutorshipDetail from './student/tutorshipDetail.vue'
import Notice from './notice.vue'
import SHomework from './student/homework/index.vue'
import SHomeworkDetail from './student/homework/detail.vue'
import SHomeworkScore from './student/homework/score.vue'
import SLessionDetail from './student/lessionDetail.vue'

import teacher from './teacher/index'
const routes = [
  { path: '/login', component: Login },
  { path: '/forget', component: Forget },
  {
    path: '/notice',
    component: Notice
  },
  { path: '/forget/identidy',
    component: Identidy,
    children: [
      {
        path: '',
        component: IdentidyStep1
      },
      {
        path: 'step2',
        component: IdentidyStep2
      },
      {
        path: 'step3',
        component: IdentidyStep3
      }
    ]
  },
  // student
  {
    path: '/student',
    component: Student,
    children: [
      {
        path: '',
        alias: 'lession',
        component: SLession
      },
      {
        path: 'tutorship',
        component: STutorship
      },
      {
        path: 'tutorship/:homeworkid',
        component: STutorshipDetail
      },
      {
        path: 'mistake',
        component: SMistake,
        children: [
          {
            path: '',
            component: SMistakeHomework
          },
          {
            path: 'exam',
            component: SExam
          }
        ]
      },
      {
        path: '',
        component: SMistakeDetail
      },
      {
        path: 'homework',
        component: SHomework
      },
      {
        path: 'homework/detail/:id',
        component: SHomeworkDetail
      },
      {
        path: 'homework/score',
        component: SHomeworkScore
      },
      {
        path: 'lession/:catelogid/:bookid',
        component: SLessionDetail
      },
      {
        path: 'lession/:catelogid',
        component: SLession
      }
    ]
  },
  // teacher
  teacher
]

export default routes
